package cn.youyu.fm.service;

import cn.youyu.fm.dao.IUserDao;
import cn.youyu.fm.domain.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author: mayuanbao
 * @date: 2018-12-01 14:51
 * @description:
 */
@Service(value = "userService")
public class UserServiceImpl implements IUserService {
    @Resource(name = "userDao")
    private IUserDao dao;

    @Override
    public User getUser(String name) {
        return dao.getUser(name);
    }

    @Override
    public int save(User user) {
        return dao.save(user);
    }
}
